package com.orangelife.service.propApp.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.orangelife.common.MybaitsGenericDaoSubLogic;
import com.orangelife.service.propApp.IPropAppService;

@Service("propAppService")
public class PropAppServiceImpl extends MybaitsGenericDaoSubLogic implements
		IPropAppService {

	@Override
	public List<Map<String, Object>> selectProInfo(String apartmentId) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("apartmentid", apartmentId);
		return this.getSqlSession().selectList("PropAppMapper.selectProInfo",
				map);
	}

	@Override
	public List<Map<String, Object>> selectProInfo2(String apartmentId,String  otherName) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("apartmentid", apartmentId);
		map.put("otherName", otherName);
		return this.getSqlSession().selectList("PropAppMapper.selectProInfo",
				map);
	}
}
